import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '表名',
    align: "center",
    dataIndex: 'tableName',
    fixed: 'left',
    width: 230,
  },
  {
    title: '表说明',
    align: "center",
    dataIndex: 'tableComment',
    fixed: 'left',
    width: 230,
  },
  {
    title: '同步状态',
    align: "center",
    dataIndex: 'status',
    slots: { customRender: 'status' },
  },
  {
    title: '数据库目录名',
    align: "center",
    dataIndex: 'tableCatalog'
  },
  {
    title: '数据库名',
    align: "center",
    dataIndex: 'tableSchema'
  },
  {
    title: '表类型',
    align: "center",
    dataIndex: 'tableType'
  },
  {
    title: '存储引擎',
    align: "center",
    dataIndex: 'engine'
  },
  {
    title: '表版本',
    align: "center",
    dataIndex: 'version'
  },
  {
    title: '行存储格式',
    align: "center",
    dataIndex: 'rowFormat'
  },
  {
    title: '表行数估算',
    align: "center",
    dataIndex: 'tableRows'
  },
  {
    title: '平均行长度',
    align: "center",
    dataIndex: 'avgRowLength'
  },
  {
    title: '数据总字节数',
    align: "center",
    dataIndex: 'dataLength'
  },
  {
    title: '数据允许最大字节数',
    align: "center",
    dataIndex: 'maxDataLength'
  },
  {
    title: '索引总字节数',
    align: "center",
    dataIndex: 'indexLength'
  },
  {
    title: '未使用的空间',
    align: "center",
    dataIndex: 'dataFree'
  },
  {
    title: '下一个自增值',
    align: "center",
    dataIndex: 'autoIncrement'
  },
  {
    title: '最后检查时间',
    align: "center",
    dataIndex: 'checkTime'
  },
  {
    title: '字符集排序规则',
    align: "center",
    dataIndex: 'tableCollation'
  },
  {
    title: '校验和',
    align: "center",
    dataIndex: 'checksum'
  },
  {
    title: '额外选项',
    align: "center",
    dataIndex: 'createOptions'
  },
  {
    title: '列表达式',
    align: "center",
    dataIndex: 'generationExpression'
  },
  {
    title: '加密类型',
    align: "center",
    dataIndex: 'encryptionType'
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: '表名',
    field: 'tableName',
    component: 'Input',
  },
];